package cn.com.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;

@Configuration
public class SchedulerConfig {
	//SchedulerFactoryBean
	
	@Bean(name = "schedulerFactoryBean")
    public SchedulerFactoryBean mySchedulerFactoryBean(){
		SchedulerFactoryBean sfb = new SchedulerFactoryBean();
		sfb.setApplicationContextSchedulerContextKey("applicationContext");
        return sfb;
    }
}
